package pharao.client.views.game.menu;

import hmvc4gwt.client.event.IHmvcEvent;
import hmvc4gwt.framework.client.view.GuiView;
import pharao.client.i18ln.GuiText;
import pharao.client.views.game.landkarte.LandkarteModel;
import pharao.client.views.game.navigation.GameNavigationModel;

import com.google.gwt.user.client.ui.Hyperlink;

public class GameMenuView extends GuiView {
	
	private MenuPanel menuPanel = new MenuPanel();

	public void initImpl() {
		
		Hyperlink hyperlinkLandkarte 	= LandkarteModel.getHyperlinkMap();
		Hyperlink hyperlinkStatus 		= new Hyperlink(GuiText.constants.link_status(), 	GameNavigationModel.linkStatus);
		Hyperlink hyperlinkHilfe 		= new Hyperlink(GuiText.constants.link_help(), 		GameNavigationModel.linkGameHelp);
		Hyperlink hyperlinkLogOut 		= new Hyperlink(GuiText.constants.link_logout(), 	GameNavigationModel.linkLogout);
		
		menuPanel.add(hyperlinkLandkarte);
		menuPanel.add(hyperlinkStatus);
		menuPanel.add(hyperlinkHilfe);
		menuPanel.add(hyperlinkLogOut);

		add(menuPanel.getMenuWidget());
	}

	public void handleEventImpl(IHmvcEvent event) {
	}

	public void terminate() {
		// TODO Auto-generated method stub
		
	}

}
